package com.example.order.config;

import com.example.common.utils.RedisIdWorkUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

@Configuration
public class GenerateIdConfig {
    @Bean
    public RedisIdWorkUtil redisIdWorkUtil(StringRedisTemplate stringRedisTemplate) {
        return new RedisIdWorkUtil(stringRedisTemplate);
    }

}
